<header class="headernav">
  <div id="wap_ad_top"></div>
  <% const {topmenu,menu2}=require(`./mock.json`)%>
  <div class="header">
    <div class="left" id="menu">
      <img src="//m.ieduchina.com/statics/users/images/menu.png" alt="">
    </div>
    <h1>
      <a href="//m.ieduchina.com"><img src="//m.ieduchina.com/statics/w/img/logol.png" alt="国际教育网"></a>
    </h1>
    <a class="search" href="//m.ieduchina.com/search/">
      <img src="//m.ieduchina.com/statics/users/images/search.png" alt="">
    </a>
    <a class="right" href="//m.ieduchina.com/login.html" id="adLogin">
      <img src="//m.ieduchina.com/statics/users/images/nouser.png" alt="">
    </a>
    <a class="s2hk">繁體</a>
  </div>
  <div class="topmenu">
    <ul>
      <%topmenu.forEach((el,i)=>{%>
      <li<%=(i==index)?" class=active":""%>>
        <a href="<%=el.link%>"><%=el.name%></a>
        </li>
        <%})%>
    </ul>
  </div>
  <div class="index-menu-wrap">
    <div class="index-menu">
      <div class="title">
        全部频道
        <div class="close-menu"></div>
      </div>
      <%menu2.forEach((el)=>{%>
      <h2><%=el.name%></h2>
      <ul>
        <%el.list&&el.list.forEach((el2)=>{%>
        <li><a href="<%=el2.link%>"><%=el2.name%></a></li>
        <%})%>
      </ul>
      <%})%>
    </div>
  </div>
</header>